pyramid pattern in python